package com.zzyl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.dto.ReservationPageDto;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 预约
 */
public interface ReservationService extends IService<Reservation> {

    //查询取消预约次数
    Integer getCancelledCount();

    //查询每个时间段剩余预约次数
    List<TimeCountVo> getTimeCount(Long time);

    //新增预约
    void add(Reservation reservation);

    //分页查询预约
    PageResponse<Reservation> getByPage(Integer status, Integer pageNum, Integer pageSize);
}
